package com.gxa.medical.service.impl;

import com.gxa.medical.mapper.DoctorSymptomMapper;
import com.gxa.medical.pojo.Assistant;
import com.gxa.medical.pojo.Symptom;
import com.gxa.medical.service.DoctorSymptomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author Dusen
 * @date 2022/6/10 10:53
 */
@Service
@Transactional(rollbackFor = {Throwable.class})
public class DoctorSymptomServiceImpl implements DoctorSymptomService {
    @Autowired
    private DoctorSymptomMapper doctorSymptomMapper;

    @Override
    public List<Symptom> selectSeFromFocal() {
        return doctorSymptomMapper.selectSeFromFocal();
    }

    @Override
    public Integer addSE(Integer userId, Integer ctId, Integer dnaId) {
        return doctorSymptomMapper.addSE(userId, ctId, dnaId);
    }

    @Override
    public List<String> selectDna() {
        return doctorSymptomMapper.selectDna();
    }

    @Override
    public List<Assistant> selectHCAll() {
        return doctorSymptomMapper.selectHCAll();
    }

    @Override
    public List<Assistant> selectCtFromOther() {
        return doctorSymptomMapper.selectCtFromOther();
    }

    @Override
    public List<Assistant> selectCtFromAct() {
        return doctorSymptomMapper.selectCtFromAct();
    }

    @Override
    public List<Assistant> selectCtFromHave() {
        return doctorSymptomMapper.selectCtFromHave();
    }

    @Override
    public Integer addUserSymptom(Integer userId, Integer symptomId) {
        return doctorSymptomMapper.addUserSymptom(userId, symptomId);
    }

    @Override
    public List<Symptom> selectSynFromNewborn() {
        return doctorSymptomMapper.selectSynFromNewborn();
    }
}
